export interface general { 
    code: number,
    message: string,
    ok:boolean
}

export interface melasDate {
    id: number;
    createTime: string;
    updateTime: string;
    pid: number;
    name: string;
    code: string;
    toCode: null;
    type: number;
    status: null;
    level: number;
    children: melasChild;
    select: false;
}

export type melasChild = melasDate[];

export interface melas extends general {
    data: melasDate[];
}

// 修改和新增所需要的
export interface needSE {
    id?: number;
    code: string;
    level: number;
    name: string;
    pid: number;
}